package com.headfirst.BehaviorMode.command.simpleremote;

import com.headfirst.BehaviorMode.command.simpleremote.equipment.Light;

/**
 * 具体的命令对象
 * 
 * 关闭电灯的命令，需要实现命令接口Command
 */
public class LightOffCommand implements Command{
    
    private Light light;

    public LightOffCommand() {}

    @Override
    public void execute() {
        light.off();
    }
}
